$(document).ready(function() {
$("#submit").click(function() {
    var formData = $("#statForm").serialize();
    $("#results table tr.result").remove();


    $.post("engine/stats.php", formData,
        function (responseData) {
            $("#results table").append(responseData);
            //alert(responseData);
        }
    );

});
});